package com.simple.cloud.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.simple.cloud.domain.entity.SysUser;
import com.simple.cloud.domain.req.SysUserReq;
import com.simple.cloud.domain.resp.SysUserResp;

import java.util.List;

public interface SysUserService  extends IService<SysUser> {
    SysUserResp getByUsername(String username);

    SysUserResp getById(Long id);

    boolean resetPasswd(Long id, String password);

    Page<SysUserResp> getPage(SysUserReq req);

    List<SysUserResp> getList(SysUserReq req);

    boolean saveAndEdit(SysUserReq req);


    boolean deleteByIds(List<Long> ids);

}
